package org.jeecg.demo.wx.convert;

import org.jeecg.demo.wx.entity.EScheduledType;
import org.jeecg.demo.wx.vo.EScheduledTypeVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 功能描述
 * 日程类型vo转换器
 *
 * @author: zgq
 * @date: 2024年01月30日 20:52
 */
@Mapper
public interface EScheduledTypeConvert {
    EScheduledTypeConvert INSTANCE = Mappers.getMapper(EScheduledTypeConvert.class);


    @Mapping(target = "id", source = "id")
    @Mapping(target = "name", source = "name")
    List<EScheduledTypeVo> convertList(List<EScheduledType> escheduledTypes);

    @Mapping(target = "id", source = "id")
    @Mapping(target = "name", source = "name")
    EScheduledTypeVo convertOne(EScheduledType escheduledTypes);
}
